<?php /* Smarty version 2.6.18, created on 2016-12-14 10:40:38
         compiled from exam/exam.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-edit (alias)" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">考试名称列表</p>
					<a href="index.php?a=exam.add" class="btn btn-primary btn-sm" style="float:right; color:#fff;">设 置</a>
                </div>
                <div class="box-body">
				 <form name="form1" action="" method="get">
                      <div class="form-group col-sm-3">
						  <label class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							    学期：
						  </label>
						  <div class="input-group col-md-8 col-sm-12 col-xs-12">
							    <select class="form-control" name="semester_id">
								<?php $_from = $this->_tpl_vars['semester_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <option value="<?php echo $this->_tpl_vars['value']['semester_id']; ?>
" <?php if ($this->_tpl_vars['value']['semester_id'] == $this->_tpl_vars['semester_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['semester_name']; ?>
</option>
								<?php endforeach; endif; unset($_from); ?>
                                </select>
						  </div> 
				      </div>
                      <div class="form-group col-sm-3">
						  <label class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   年级：
						  </label>
						  <div class="input-group col-md-8 col-sm-12 col-xs-12">
							    <select class="form-control" name="grade_id">
								<option value="0">全部</option>
								<?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <option value="<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" <?php if ($this->_tpl_vars['value']['grade_id'] == $this->_tpl_vars['grade_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</option>
								<?php endforeach; endif; unset($_from); ?>
                                </select>
						  </div> 
				      </div>
                      <div class="form-group col-sm-4">
						  <label class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   考试类型：
						  </label>
						  <div class="input-group col-sm-6 col-xs-12" style="float:left; margin-right:6px;">
							    <select class="form-control" name="exam_type">
								<option value="0">全部</option>
								<?php $_from = $this->_tpl_vars['exam_type_ini']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <option value="<?php echo $this->_tpl_vars['key']; ?>
"  <?php if ($this->_tpl_vars['key'] == $this->_tpl_vars['exam_type']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']; ?>
</option>
								<?php endforeach; endif; unset($_from); ?>
                                </select>
						  </div> 
						  <input type="hidden" name="a" value="exam.list">
                          <button class="btn btn-primary" type="submit">搜 索</button>
				      </div>  
					</form>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#fcb53f;">
                                        <td>学期</td>
                                        <td>年级</td>
                                        <td>考试类型</td>
                                        <td>计分类型</td>
                                        <td>考试全称</td>
                                        <td>简称</td>
										<td width="130">操作</td>										
                                    </tr>	
                                </thead>
                                <tbody>
								<?php $_from = $this->_tpl_vars['exam_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                         <td><?php echo $this->_tpl_vars['value']['semester_name']; ?>
</td>
                                         <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</td>
                                         <td><?php echo $this->_tpl_vars['value']['exam_type']; ?>
</td>
                                         <td><?php echo $this->_tpl_vars['value']['score_type']; ?>
</td>
                                         <td><?php echo $this->_tpl_vars['value']['exam_name']; ?>
</td>
                                         <td><?php echo $this->_tpl_vars['value']['exam_ename']; ?>
</td>
										 <td>
										      <a href="index.php?a=exam.update&exam_id=<?php echo $this->_tpl_vars['value']['exam_id']; ?>
" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit (alias)"></i></a>
											  <a href="index.php?a=exam.del&exam_id=<?php echo $this->_tpl_vars['value']['exam_id']; ?>
" onclick="if(confirm('警告！确认删除信息?')==false)return false;" class="btn btn-danger btn-sm" title="删除"><i class="fa fa-trash"></i></a>
										 </td>
                                    </tr>
								<?php endforeach; endif; unset($_from); ?>	
                            </tbody>
                        </table>
				   </div><!--box-body -->
                   <div class="box-footer">
                        <?php echo $this->_tpl_vars['page']; ?>

                   </div>
           </div><!--box box-default box-solid-->
         </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>